package com.baiyang.app.ui.classification;

import androidx.lifecycle.LiveData;
import androidx.lifecycle.MutableLiveData;
import androidx.lifecycle.ViewModel;

import com.alibaba.fastjson.JSONObject;

public class ClassificationViewModel extends ViewModel {

    private MutableLiveData<JSONObject> getTypeResult;

    public ClassificationViewModel() {
        getTypeResult = new MutableLiveData<>();
    }

    public void setGetTypeResult(JSONObject result) {
        this.getTypeResult.postValue(result);
    }

    public LiveData<JSONObject> getGetTypeResult(){
        return getTypeResult;
    }
}